package com.merry.myenum;


/**
 * 不使用枚举类创建一个单实例对象
 */
public class Season {
    private String name;
    private Season(String name){
        this.name=name;
    };

    public String getName() {
        return name;
    }

    public static final Season SPRING = new Season("1");
    public static final Season SUMMER = new Season("2");
    public static final Season AUTUMN = new Season("3");
    public static final Season WINTER = new Season("4");
}
